/**
 * This file will automatically be loaded by webpack and run in the "renderer" context.
 * To learn more about the differences between the "main" and the "renderer" context in
 * Electron, visit:
 *
 * https://electronjs.org/docs/latest/tutorial/process-model
 *
 * By default, Node.js integration in this file is disabled. When enabling Node.js integration
 * in a renderer process, please be aware of potential security implications. You can read
 * more about security risks here:
 *
 * https://electronjs.org/docs/tutorial/security
 *
 * To enable Node.js integration in this file, open up `main.js` and enable the `nodeIntegration`
 * flag:
 *
 * ```
 *  // Create the browser window.
 *  mainWindow = new BrowserWindow({
 *    width: 800,
 *    height: 600,
 *    webPreferences: {
 *      nodeIntegration: true
 *    }
 *  });
 * ```
 */
import 'bootstrap/dist/css/bootstrap.min.css';
import 'bootstrap/dist/js/bootstrap.min.js';
import 'bootstrap-icons/font/bootstrap-icons.css'
import './assets/css/index.scss';
import resizable from './directives/resizable.js'
import resize from './directives/resize'
import Cbui from "./components/wights"
import { routes } from './routers'

import {createApp} from 'vue' 
import { createPinia } from 'pinia';
import { useLayoutStore } from './stores/pinia/layoutStore'
import App from './index.vue'
import store from './stores/index'


const app = createApp(App)

app.use(Cbui)
app.use(routes)
app.use(createPinia())
app.use(resizable)
app.use(resize)
app.mount('#cubex-app')

